package com.example.cloud_consumer.service;

import com.example.cloud_consumer.service.impl.HelloFeignFallbackImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @Description: <p>
 * Company: aspire
 * </p>
 * @Author: gjj
 * @Date: 2019/8/15
 */
@FeignClient(value = "hello-service",fallback = HelloFeignFallbackImpl.class)
public interface HelloFeignService {

    @GetMapping("/hello")
    String hello();

    @GetMapping("/helloTimeOut")
    String helloTimeOut();
}
